package com.home.qh.core;

import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.home.qh.util.DateUtil;

public class Core {
    private static Log log = LogFactory.getLog(Core.class);
    
	public void execute() {
		String message = "execute scheduler at " + DateUtil.getDateTime("dd/MM/yyyy HH:mm:ss", new Date());
		if(log.isInfoEnabled()) {
			log.info(message);
		} else {
			System.out.println(message);
		}
	}
	
    public static String getHello() {
        return "Hello";
    }
}
